package com.txw.travel.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class PageController {

    //访问后台
    @RequestMapping("/backstage/{page}")
    public String showPageBackstage(@PathVariable String page){
        return "/backstage/"+page;
    }

    //访问前台
    @RequestMapping("/frontdesk/{page}")
    public String showFrontdesk(@PathVariable String page) {
        return "/frontdesk/" + page;
    }

    //ignore logo icon
    @RequestMapping("favicon.ico")
    @ResponseBody
    public void returnNoFavicon() {
    }
}
